<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<h2 class="contentTitle">  修改产品</h2>


<div class="pageContent">
	
	<form method="post" action="<c:url value="/product/update.do"/>" class="pageForm required-validate" method="post" enctype="multipart/form-data"  onsubmit="return iframeCallback(this,navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="97">
          <input type="hidden" name="id" value="${product.id}" maxlength="50" class="required" alt="请输入产品名"/>
			<dl>
				<dt>产品名：</dt>
				<dd>
					<input type="text" name="name" value="${product.name}" maxlength="50" class="required" alt="请输入产品名"/>
					
				</dd>
			</dl>
			<dl>
				<dt>长度：</dt>
				<dd>
					<input type="text"  name="length" value="${product.length}" class="required  number" alt="请输入长度"/>
				
				</dd>
			</dl>
			<dl>
				<dt>宽度：</dt>
				<dd>
					<input type="text"  name="width" value="${product.width}" class="required  number" alt="请输入宽度"/>
					
				</dd>
			</dl>
			<dl>
				<dt>高度：</dt>
				<dd>
					<input type="text" name="height"  value="${product.height}" class="required  number" alt="请输入高度"/>
					
				</dd>
			</dl> 
			<dl>
				<dt>颜色：</dt>
				<dd>
					<input  type="hidden" name="color.id"  value="${product.color.id}"  class="required"  />
				<input type="text" name="color.description"  readonly value="${product.color.description}"  class="required" />
				<a class="btnLook" href="<c:url value="/color/lookuplist.do"/>" lookupGroup="color">查找带回</a>	
			<img width="50" height="50" src="<c:url value="${color.imagePath}"/>">
				</dd>
			</dl>
			<dl>
				<dt>描述：</dt>
				<dd>
					<input type="text"  name="remark" value="${product.remark}" class="required" />
				
				</dd>
			</dl>
			
			<dl>
				<dt>图片：</dt>
				<dd>
					<input type="file" name="file"/>
					
				</dd>
			</dl>
			<div><img width="300" height="100" src="<c:url value="${product.imagePath}"/>"></div>
			
			<div class="divider"></div>
		
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

